package controller.home;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Observable;

import view.Home;
import view.dialog.EmployeeChangePasswordDialog;

public class ChangePassController extends Observable implements ActionListener{
	
	
	// hien thi diaglog len
	@Override
	public void actionPerformed(ActionEvent e) {
		EmployeeChangePasswordDialog.getInstance().setLocationRelativeTo(Home.getInstance());
		if(this.countObservers() != 1){
			this.addObserver(EmployeeChangePasswordDialog.controller);
		}
		setChanged();
		notifyObservers();
		EmployeeChangePasswordDialog.getInstance().setVisible(true);
		//goi co 1 lan
		
		
	}
	

}
